let obj = {
    name:'csc',
    age:18
}

// 手写
Object.prototype.mycreate = function(obj) {
    let newObj = {}
    newObj.__proto__ = obj
    return newObj
}

let a = Object.mycreate(obj)
console.log(a.name, a.age);
